const Koa = require("koa");
const parser = require("koa-parser");
const app = new Koa();


//注册中间件时 注意先注册post请求，后注册路由
app.use(parser());

let controller = require("../controllers");


app.use(controller());



app.listen(3000,()=>{
    console.log("服务器运行的地址是:http://127.0.0.1:3000");
})